/**
 * 模拟数据
 */

// 报卡督导工具数据
const reportCardData = [
  {
    id: 1,
    name: '传染病报告卡_20250701154635',
    timeRange: '2024-07-08~2025-08-01',
    region: '广西壮族自治区',
    createTime: '2025-07-01',
    finishTime: '2025-07-15',
    missCount: 0,
    delayCount: 0
  },
  {
    id: 2,
    name: '传染病报告卡_20250701154635',
    timeRange: '--',
    region: '--',
    createTime: '2025-07-01',
    finishTime: '--',
    missCount: 0,
    delayCount: 0
  },
  {
    id: 3,
    name: '传染病报告卡_20250701154635',
    timeRange: '2023-07-01~2025-07-10',
    region: '广西壮族自治区',
    createTime: '2025-06-28',
    finishTime: '2025-07-05',
    missCount: 5,
    delayCount: 12
  },
  {
    id: 4,
    name: '职业病报告卡_20250615093421',
    timeRange: '2024-01-01~2024-12-31',
    region: '云南省昆明市',
    createTime: '2025-06-15',
    finishTime: '2025-06-20',
    missCount: 2,
    delayCount: 8
  },
  {
    id: 5,
    name: '突发公共卫生事件_20250620142530',
    timeRange: '2025-01-01~2025-06-30',
    region: '四川省成都市',
    createTime: '2025-06-20',
    finishTime: '2025-06-25',
    missCount: 0,
    delayCount: 3
  }
];

// 个人信息管理数据
const personalInfoData = [
  {
    id: 101,
    name: '个人基本信息',
    timeRange: '2025-01-01~2025-12-31',
    region: '广西壮族自治区南宁市',
    createTime: '2025-01-15',
    finishTime: '2025-01-20',
    missCount: 0,
    delayCount: 0
  },
  {
    id: 102,
    name: '个人资质信息',
    timeRange: '2025-01-01~2025-12-31',
    region: '广西壮族自治区南宁市',
    createTime: '2025-02-10',
    finishTime: '2025-02-15',
    missCount: 0,
    delayCount: 0
  }
];

// 应急值守任务数据
const dutyTaskData = [
  {
    id: 201,
    name: '春节应急值守_2025',
    timeRange: '2025-01-28~2025-02-04',
    region: '全国',
    createTime: '2025-01-20',
    finishTime: '进行中',
    missCount: 0,
    delayCount: 1
  },
  {
    id: 202,
    name: '国庆应急值守_2025',
    timeRange: '2025-10-01~2025-10-07',
    region: '全国',
    createTime: '2025-09-25',
    finishTime: '待开始',
    missCount: 0,
    delayCount: 0
  },
  {
    id: 203,
    name: '日常值守巡检_2025Q4',
    timeRange: '2025-10-01~2025-12-31',
    region: '广西壮族自治区',
    createTime: '2025-09-28',
    finishTime: '进行中',
    missCount: 1,
    delayCount: 3
  }
];

// 事件上报数据
const eventReportData = [
  {
    id: 301,
    name: '突发疫情事件_20251015',
    timeRange: '2025-10-15~2025-10-20',
    region: '贵州省贵阳市',
    createTime: '2025-10-15',
    finishTime: '2025-10-20',
    missCount: 0,
    delayCount: 0
  },
  {
    id: 302,
    name: '自然灾害事件_20250920',
    timeRange: '2025-09-20~2025-09-25',
    region: '湖南省长沙市',
    createTime: '2025-09-20',
    finishTime: '2025-09-25',
    missCount: 0,
    delayCount: 2
  }
];

// 数据统计数据
const dataStatisticsData = [
  {
    id: 401,
    name: '月度统计报告_202510',
    timeRange: '2025-10-01~2025-10-31',
    region: '全国',
    createTime: '2025-11-01',
    finishTime: '2025-11-03',
    missCount: 0,
    delayCount: 0
  },
  {
    id: 402,
    name: '季度统计报告_2025Q3',
    timeRange: '2025-07-01~2025-09-30',
    region: '全国',
    createTime: '2025-10-05',
    finishTime: '2025-10-10',
    missCount: 0,
    delayCount: 0
  }
];

// 消息通知数据
const notificationData = [
  {
    id: 501,
    name: '系统维护通知',
    timeRange: '2025-11-05~2025-11-05',
    region: '全国',
    createTime: '2025-11-04',
    finishTime: '--',
    missCount: 0,
    delayCount: 0
  },
  {
    id: 502,
    name: '功能更新通知',
    timeRange: '2025-11-01~2025-11-01',
    region: '全国',
    createTime: '2025-10-30',
    finishTime: '2025-11-01',
    missCount: 0,
    delayCount: 0
  }
];

// 系统设置数据
const systemSettingsData = [
  {
    id: 601,
    name: '系统配置信息',
    timeRange: '2025-01-01~2025-12-31',
    region: '--',
    createTime: '2025-01-01',
    finishTime: '--',
    missCount: 0,
    delayCount: 0
  }
];

/**
 * 根据菜单索引获取对应数据
 * @param {Number} menuIndex - 菜单索引
 * @returns {Array} 数据列表
 */
export function getDataByMenuIndex(menuIndex) {
  const dataMap = {
    0: reportCardData,
    1: personalInfoData,
    2: dutyTaskData,
    3: eventReportData,
    4: dataStatisticsData,
    5: notificationData,
    6: systemSettingsData
  };
  
  return dataMap[menuIndex] || [];
}

/**
 * 导出所有数据（可用于其他场景）
 */
export const allMockData = {
  reportCardData,
  personalInfoData,
  dutyTaskData,
  eventReportData,
  dataStatisticsData,
  notificationData,
  systemSettingsData
};

